package com.yjhh.chdataservice.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 政策信息
 */
@Entity
@Data
public class PolicyInfo extends BaseEntity {

    @Column(nullable = false)
    private String requestIp;    //上传文件IP

    @Column(nullable = false)
    private String title;    //标题

    @Column(nullable = true)
    private String secondTitle;    //副标题

    private String icon;    //新闻图标

    @Column(nullable = false)
    private Integer policyType;    //政策类型 (1:中省政策;2:易地搬迁政策;3：新闻)

    private Integer contentType;   //内容类型 (1:文本类型;2:链接地址;3：PDF附件类型)

    @Column(nullable = false, length = 40000)
    private String content;  //政策内容

}
